<%=stylesheet_link_tag "student-resume" -%>
<div class="resume1-landing-container">
	<div class="main-resume1">
    	<div class="resume1-header">
        	<div class="resume1-title">
            	<%=@advertisment.title -%>
            </div>
            <div class="resume1-university">
            	  <%if @category==2 %>
                    <%=@university.name -%>
                  <%else%>
                    <%=@advertisment.location -%>
                  <%end%>
           	</div>
		</div>
       <div class="resume1-tabs">
            <ul>
                <li class="resume1-tab-selected"><a href="">About</a></li>
                <li id="comments">
                  <%= link_to_remote "Comments",:url => {:controller=>"advertisments",:action => "comments",:id => @advertisment},:update => "details",:html=>{:onclick=>"showadtabs(document, 'li', 'resume1-tab-selected','');this.parentNode.setAttribute('class','resume1-tab-selected','');"} -%>
                </li>
                 <%unless @imagescount == 0 -%>
                  <li id="photos">
                    <%= link_to_remote  "Photos" ,:url => {:controller=>"advertisments",:action => "full_image",:id => @advertisment,:imageid=>@firstimage.id},:update => "details",:html=>{:onclick=>"showadtabs(document, 'li', 'resume1-tab-selected','');this.parentNode.setAttribute('class','resume1-tab-selected','');"} -%>
                  </li>
                 <%end -%>
            </ul>
		</div>
        <div class="resume1-inner">
            <div id="details" class="resume1-details">
                <div class="resume1-details-top">
                 
                  <%if @category==2 %>
                    <%=render :partial=>"resume_fields" -%>
                  <%else%>
                    <%=render :partial=>"non_resume_fields" -%>
                  <%end%>

           		</div>
             	<%if @category==1%>
                  <%=render :partial=>"advertisments/job_openings_description" -%>
                <%elsif @category==2%>
                  <%=render :partial=>"advertisments/resume_description" -%>
                <%else%>
                  <%=render :partial=>"advertisments/other_description" -%>
                <%end-%>

            </div>
            <div class="fullad-right-column">
            	<div class="resume1-action-buttons">
                    <div class="resume1-button">
                     <%=image_tag "save-ad.png", :width=>"15px",:height=>"15px",:align=>"absmiddle",:border=>"0px"-%>&nbsp;<%=link_to "Save Ad" , "javascript:openSave("+params[:id]+");"-%>
                    </div>
                    <div class="resume1-button">
                     <%=image_tag "print.png", :width=>"15px",:height=>"15px",:align=>"absmiddle",:border=>"0px"-%>&nbsp;<%=link_to "Print" ,"javascript:print();"-%>
                    </div>
                    <div class="resume1-button">
                     <%=image_tag "email-to-friend.png", :width=>"15px",:height=>"15px",:align=>"absmiddle",:border=>"0px"-%>&nbsp;<%=link_to "E-mail to friend","javascript:openEmailFriend("+params[:id]+");"-%>
 					</div>
                    <div class="resume1-button">
                    <%=image_tag "report-abuse.png", :width=>"15px",:height=>"15px",:align=>"absmiddle",:border=>"0px"-%>&nbsp;<%=link_to "Report abuse" ,"javascript:openReportAbuse("+params[:id]+");"-%>
                  	</div>
                </div>
<%=render :partial=>"advertisments/contact_form" -%>
          	</div>
        </div>
	</div>
</div>